package com.jkgl.mapper;

import com.jkgl.entity.UserInfoSelfEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jkgl.model.result.SelfUserVO;
import com.jkgl.model.userinfo.UserInfo;
import com.jkgl.model.userinfo.UserInfoPage;
import com.jkgl.model.userinfoself.UserInfoSelfPagination;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author w020304m
 * @since 2025-02-11
 */
@Mapper
public interface UserInfoSelfMapper extends BaseMapper<UserInfoSelfEntity> {

    List<UserInfo> selectUserInfoList(UserInfoPage pagination);

    List<UserInfoSelfEntity> getList(UserInfoSelfPagination userInfoSelfPagination);

    List<SelfUserVO> getBMIAll(@Param("minAge") Integer minAge, @Param("maxAge")Integer maxAge);
}
